]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/volume: Don't show OSD when initializing
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 11 Nov 2024 20:14:42 +0000 (21:14 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 12 Nov 2024 11:45:23 +0000 (11:45 +0000)
The OSD should only be shown when switching to or from headphones,
not when initializing the volume indicator during startup.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8054
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3543>

js/ui/status/volume.js

index 7e5032607ceb67ce9d57cf199efff31f687fb39f..e2fa9a207eae92eae9935e8da1d01b9c1c46b134 100644 (file)
@@ -344,9 +344,11 @@ class OutputStreamSlider extends StreamSlider {
         if (hasHeadphones === this._hasHeadphones)
             return;
 
+        const initializing = this._hasHeadphones === undefined;
         this._hasHeadphones = hasHeadphones;
         this._updateIcon();
-        this.showOSD();
+        if (!initializing)
+            this.showOSD();
     }
 
     _updateIcon() {